#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int comper(const void* x, const void* y)
{
	return (*(int*)x - *(int*)y);
}
int main()
{
	int a[10] = { 7,8,1,5,4,2,6,3,9,10 };
	int sz = sizeof(a) / sizeof(a[0]);
	qsort(a, sz, sizeof(int), comper);
	int i = 0;
	for (i = 0; i < sz; i++)
	{
		printf("%d ", a[i]);
	}
	return 0;
}